using Dto;

namespace Net.Handler
{
    public abstract class HandlerBase
    {
        public abstract void OnReceive(ResBase resBase);
        
        /**
         * 发送消息
         */
        protected void Dispatch(int areaCode, int eventCode, object message)
        {
            MsgCenter.Instance.Dispatch(areaCode,eventCode,message);
        }
    }
}